Part Number Hot Search : 
HC705 KRA352 00IA5E BXMP1027 CRBV5 15Q7Q HVU367 BJ810
Product Description
Full Text Search
 

To Download LPM11162 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  LPM11162 audio module www.lpelettronica.it firmware version.2.1r doc. rev.0 (04/12/10) features ? separate analog/digital supplies for optimmum performance ? typical 3.3v supply voltage ? non-volatile audio storage ? internal flash filesystem to store wave files ? 95 seconds of audio recording ? 11.025khz sample rate ? high quality voice/sounds reproduction ? uart interface for programming/playback (serial- mode) ? input pin reading for playback (key-mode) ? analog audio output for playback ? 5khz audio bandwidth ? small footprint device (20x28mm) ? low power consumption ? applications: automatic distributors, robots, indus trial controllers, entertainment, gadgets description LPM11162 is a simple integrated solution to store a nd reproduce high quality audio wave files in elect ronic circuits. typical applications are automatic distributors, ro bots, speaking devices, gadgets and in general all the devices where it is required to program and play audio wave files. the audio files (11khz C 16bit) can be programmed i n the internal 2mbyte flash memory that is provided with an advanced filesystem. programming is done on the ua rt port using simple filesystem commands. the baudr ate for communication is programmable with the autobaudrate feature (up to 115200 bps). the audio files can be reproduced on the analog oup ut using the playback commands (serialmode) or dri ving some input pin (pressing keys , driving rel or tra nsistors, ecc). typical application 100nf 4.7uf dvcc-3.3v dgnd dgnd 100nf 4.7uf avcc-3.3v agnd agnd dvcc avcc uart-rx agnd audio-out microcontroller LPM11162 dgnd dvcc-3.3v amp agnd 100nf dgnd out /busy /reset in uart-tx uart-tx uart-rx figure 1 C typical application schematic
LPM11162 www.lpelettronica.it 1 pin diagram figure 2 C pin diagram (top view) pin description pin number pin name pin type description 1 key2 /busy in out in keymode this pin is nam ed key2 and it is used in combination with other key pins to play wave fil es pressing keys. in serial mode this is an active low busy pin. this signal is normally high, it is driven low by the mo dule during a command execution (busy condition). new commands are not accepted when the module is in bus y state. 2 /reset in active low reset pin. low level is rese t condition, high level is running condition. 3 dv cc power digital supply voltage. 4 dgnd power digital ground. 5 key1 uarttx in / out in keymode this pin is n amed key1 and it is used in combination with other key pins to play wave fil es pressing keys. in serialmode this is the uart transmit pin. 12 11 10 9 8 7 1 2 3 4 5 6
LPM11162 www.lpelettronica.it 2 6 key0 uartrx in in keymode this pin is named k ey0 and it is used in combination with other key pins to play wave fil es pressing keys. in serialmode this is the uart receive pin. 7 nc not connected 8 av cc power analog supply voltage. 9 audioout output analog audio output signal (sing le ended). 10 nc not connected 11 agnd power analog ground. 12 nc not connected table 1 C pin description
LPM11162 www.lpelettronica.it 3 absolute maximum ratings stresses exceeding the absolute maximum ratings may damage the device. the device may not function or be operable above the recommended operating conditions and stressing the parts to these levels is not rec ommended. in addition, extended exposure to stresses above th e recommended operating conditions may affect devic e reliability. the absolute maximum ratings are stres s ratings only. symbol parameter rating dv cc digital supply voltage 0.3v to +4.0v av cc analog supply voltage 0v to +5.5v v in digital input pin voltage 0.3v to +4.0v t a operating ambient temperature range 20c to +85c i od dc maximum source/sink current from digital output pins 10ma i oa dc maximum source/sink current from analog output pin 10ma recommended operating conditions the recommended operating conditions table defines the conditions for actual device operation. recomme nded operating conditions are specified to ensure optima l performance to the datasheet specifications. it i s not recommended exceeding them or designing to absolute maximum ratings. symbol parameter rating dv cc digital supply voltage +2.7v to +3.6v av cc analog supply voltage +2.7v to +5.5v v in digital input pin voltage 0v to dv cc t a operating ambient temperature range 0c to +70c electrical characteristics symbol parameter min max i dcc dc maximum supply current on dv cc 70ma i acc dc maximum supply current on av cc 1 ma bw maximum analog output bandwidth 5 khz v ih high level input voltage on digital pin 0.8 dv cc v il low level input voltage on digital pin 0.2 dv cc v oh high level output voltage on digital pin 2.4v v ol low level outputvoltage on digital pin 0.4v
LPM11162 www.lpelettronica.it 4 1 C introduction 1.1 C filesystem LPM11162 is designed with an internal filesystem th at is able to store standard 11025hz16bit wave fil es. the uart interface makes possible to program/playback t he wave files connecting LPM11162 to another device (for example a small microcontroller or a pc). LPM11162 module microcontroller uart ( playback cmd) users board figure 3 C typical programming and playback block d iagram LPM11162 is equiped with a 2mbyte flash memory that in 11khz16bit wave format allows to store a maxim um of 95 seconds (maximum time for all the files). the ma ximum number of files is 16 and there is no limitat ion on the size of each file. table 2 C filesystem specification 1.2 C serial-mode and key-mode LPM11162 has to working modes: serialmode and key mode. in serialmode it is able to receive commands from uart port in order to program audio wave files in t he internal flash memory or to reproduce them on the a nalog audio output. this mode is the most flexible and the user can program/reproduce a large quantity of wave file s sending simple commands from a host microcontroll er or a pc (download the LPM11162 toolkit pc application). there are cases where you dont have a microcontrol ler in your circuit, but would be nice to reproduce wave file if you have already programmed them on LPM11162. this is the case of keymode, where 3 pins of lpm11 162 are configured as input pins and the audio modu le is able to reproduce wave file when the pins status c hanges. with keymode you can put LPM11162 in your circuit with a few of other components and reproduce audio wave files. parameter value max. number of files 128 max. file name lenght 15 characters audio files sample rate 11025 hz audio files data bits 16 flash memory size 2.094.080 bytes
LPM11162 www.lpelettronica.it 5 1.2 C key-mode keymode is the default working mode of the module at startup. after poweron the modules pins 1, 5, 6 are config ured as input pins and the module consider them as not pressed in high voltage level. no wave files are played unt il one or more pins change state. if one ore more p ins becomes low voltage level then LPM11162 will reproduce a wa ve file accordingly to the following table: key2 (pin 1) key1 (pin 5) key0 (pin 6) wave file name l l l file0.wav l l h file1.wav l h l file2.wav l h h file3.wav h l l file4.wav h l h file5.wav h h l file6.wav h h h table 3 C filesystem specification when all the key pins are high level the LPM11162 i s not reproducing any audio file, while in all othe r pins configurations there is an associated wave file to be reproduced. of course each wave file can be repr oduced only if it was previously programmed using the proper comma nds in serialmode. in a typical application each key pin can be connec ted to the supply voltage with a pullup resistor. then some external keys, or opencollector transistors, or re l can drive the key pins low to enable the playbac k of a specific wave file. the interesting loop function allows to reproduce a wave file in loop, so at the end of a file the pla yback will restart from the beginning if the pins configurati on that activated playback is still present. 1.3 C serial-mode serialmode can be entered after poweron by sendin g the autobaudrate character. when this caracter i s received LPM11162 switched to serialmode, configur ing the pin 1 and pin 5 as outputs for /busy and uarttx functions and configuring pin 6 as uartrx.
LPM11162 www.lpelettronica.it 6 2 C serial-mode 2.1 C writing files wave files can be programmed on LPM11162 with only 3 simple commands: file open, file write, file clos e. the file write command permits to write the content of the audio files on the flash memory if LPM11162 . each file write command permits to transfer a maximum of 256 bytes, so if the file size if greater than 256 bytes it is required to send more file write commands in sequen ce for a complete file transfer. the file write commands are accepted only after the file has been opened with the file open command th at communicates to the module the name of the file tha t will be written. the file must be properly closed after all the data have been transferred by sending the file clos e command. for example suppose to write the file audio.wav tha t is a 612 bytes file, the sequence of commands is the following: 1) file open command (audio.wav) 2) file write command (first 256 data block) 3) file write command (second 256 data block) 4) file write command (last 100 data block) 5) file close command it is not possible to have two file with identical file name, so the file open command will fail in ca se the file name is the same of another file that is already present in the flash. 2.2 C formatting memory the entire content of the flash memory can be erase d with the file format command. this command erases all the files that are present in the flash memory. during the format procedure the /busy line is driven low t o indicate the module cannot receive other commands. the duration of the format procedure can take up to several seconds (see timing specifications). 2.3 C power-up sequence with auto-baudrate in the figure below shows the powerup sequence wit h autobaudrate feature that allows to connect the m odule to different host devices without any hardware configu ration. after the module is removed from reset, the first o peration to do is to send the autobaudrate charact er 0x55 (ascii u). when this character is received the module is able to understand the baudrate of the transmitter device and to configure itself to work at the same baudrate. after the autobaudrate character is received the / busy line is driven low to indicate that the module cannot accept commands. it sends a module id response and module firmware version response, then the /busy line is d riven high and the module is ready to receive commands.
LPM11162 www.lpelettronica.it 7 figure 4 C power-up sequence 2.4 C /busy signal the /busy signal indicates when the module is able to receive commands or when it is busy to execute t he previous command and cannot accept a new incoming command. the /busy line is normally high and it is driven lo w by the module when the first character of a comma nd is received to indicate that the command processing is going on. the line will reamain low for the time r equired to receive the entire command and to exeute it. after the command execution is terminated the /busy line will go high and another command can be accepted. exception is made for stop and volume commands. aft er the play command is received the module is considered busy until the playback of the audio fil e is completed. during this time the /busy signal r emains low, however the stop and volume commands can be sent in order to stop the file playback or adjust the volu me level while playback is in progress. id command /reset uart-tx dvcc 0x55 uart-rx module id response fw version response reset ver /busy autobaud power-up info ready to operate auto-baudrate character command
LPM11162 www.lpelettronica.it 8 2.5 - general commands/responses format the modules operations are controlled via a simple uart protocol where another device can send comman ds to the module and the module can reply with responses. the commands are divided in filesystem commands and playback commands. using filesystem commands anoth er device can program wave files with voice messages o n the module and then using the playback commands i t is very simple to reproduce the voice messages. all the commands/responses have the same general st ructure: the first byte indicates the command/respo nses type, the second and third bytes indicates the number of data bytes that will be sent into the command/respo nse, then the data bytes are transmitted. the general commands/responses structure is illustr ated here: cmd/res (1 byte) cmd len h data 1 len l len (2 bytes) data 2 .... data n data (n bytes) cmd/res (1 byte): ? 0x01 C file open command ? 0x02 C file write command ? 0x03 C file close command ? 0x04 C file format command ? 0x10 C play command ? 0x11 C stop command ? 0x12 C volume command ? 0x81 C module id response ? 0x82 C module firmware version response len (2 bytes): ? number of data bytes in the command/response. len i s sent as high byte first. data 1data n (n bytes): ? sequence of generic n data bytes. data bytes can be present or not (len=0) depending on the command/response.
LPM11162 www.lpelettronica.it 9 command description cmd len data file open open a new file on the module. required before writing data into the file. 0x01 number of characters in the file name. file name characters. file write write data bytes into the file that is currently open for writing. 0x02 number of data bytes in current command to write in the file. data bytes. file close close the file. required after writing all data bytes into the file. 0x03 0x0000 not present. file format erase all the files that are currently present in flash memory. 0x04 0x0000 not present. play start playback of a selected file. 0x10 number of characters in the name file to be played. file name characters. stop stop playback of the file that is currently playing. 0x11 0x0000 not present. volume set the playback volume level 0x12 0x0001 0100 table 4 C commands table response description res len data module id send to the host device the modules id. 0x81 0x0002 modules id module firmware version send to the host device the modules firmware version and date. 0x82 0x000d modules firmware version and date.. table 5 C responses table
LPM11162 www.lpelettronica.it 10 2.6 - file open command the first operation to do to access a file is send the file open command. this command informs the mod ule that a new file must be created with file name that is spe cified by the data bytes in the command. the general format of file open command is composed as follows: cmd 0x01 len h char 1 len l len (2 bytes) char 2 .... char n data (n bytes) cmd (1 byte): ? 0x01 C file open len (2 bytes): ? number of characters in the file name (n15). char 1char n (n bytes): ? sequence of n characters of the file name (no termi nating char). here is shown an example of creating a new file cal led f1.wav: 0x01 0x00 f 0x06 1 . w a v 2.7 - file write command after a file has been opened the file write command can be used to write the files data bytes on the internal memory of the audio module. the general format of file write command is compose d as follows: cmd 0x02 len h data 1 len l len (2 bytes) data 2 .... data n data (n bytes) cmd (1 byte): ? 0x02 C file write len (2 bytes): ? number of data bytes in current command to write in the file (n256).
LPM11162 www.lpelettronica.it 11 data 1data n (n bytes): ? sequence of n data bytes to write in the open file. here is shown an example of writing 4 bytes (0x0a, 0x0b, 0x0c, 0x0d) to an open file: 0x02 0x00 0x0a 0x04 0x0b 0x0c 0x0d 2.8 - file close command after finished to write all the data bytes to an op en file, the file must be closed by sending the fi le close command. the general format of file close command is compose d as follows: cmd 0x03 0x00 0x00 len (2 bytes) cmd (1 byte): ? 0x03 C file close len (2 bytes): ? len is 0x0000 because no data bytes are present in the command. 2.9 - file format command the file format command is used to erase all the fi le that are present in the internal memory. this co mmand is accepted only when there are no open files. the general format of file format command is compos ed as follows: cmd 0x04 0x00 0x00 len (2 bytes) cmd (1 byte): ? 0x04 C file format len (2 bytes): ? len is 0x0000 because no data bytes are present in the command.
LPM11162 www.lpelettronica.it 12 2.10 - play command the play command starts playing an audio file that was previously written to the internal memory. the play command for an audio file is accepted only if no ot her audio files are currently playing. the general format of play command is composed as f ollows: cmd 0x10 len h char 1 len l len (2 bytes) char 2 .... char n data (n bytes) cmd (1 byte): ? 0x10 C play len (2 bytes): ? number of characters in the audio file name (n15). char 1char n (n bytes): ? sequence of n characters of the audio file name (no terminating char). here is shown an example of playing the file f1.wa v: 0x10 0x00 f 0x06 1 . w a v 2.11 - stop command the play of an audio file can be stopped sending th e stop command. the general format of stop command is composed as f ollows: cmd 0x11 0x00 0x00 len (2 bytes) cmd (1 byte): ? 0x11 C stop len (2 bytes): ? len is 0x0000 because no data bytes are present in the command.
LPM11162 www.lpelettronica.it 13 2.12 - volume command the volume command allows to set the volume level f or audio reproduction. the volume level is expresse d in the range 0100: the general format of volume command is composed as follows: cmd 0x12 0x00 vol 0x01 len (2 bytes) data cmd (1 byte): ? 0x12 C volume len (2 bytes): ? len is 0x0001 because there is only 1 data byte for the volume value. vol (1 byte): ? volume level in the range 0100 (default is 50). here is shown an example of setting volume to 70%: 0x12 0x00 0x46 0x01
LPM11162 www.lpelettronica.it 14 2.13 - module id response each module has a unique id that permits to recogni ze the module. the modules id is sent by the modul e to the host controller during the powerup sequence.. the general format of module id response is compose d as follows: res 0x81 0x00 id 1 0x04 len (2 bytes) id 2 data (2 bytes) res (1 byte): ? 0x81 C modules id len (2 bytes): ? len is 0x0002 because the modules id is 2 bytes lo ng. id 1id 2 (2 bytes): ? sequence of 2 modules id bytes. 2.14 - module firmware version response the modules firmware version and release date are sent by the module to the host controller during th e powerup sequence. the general format of module firmware version respo nse is composed as follows: res 0x82 0x00 ver 0x09 len (2 bytes) data (9 bytes) day 2 month 1 month 2 year 1 year 2 ........... rev ........... day 1 status res (1 byte): ? 0x82 C modules firmware version len (2 bytes): ? len is 0x0009 because there are 3 bytes for the fir mware version and 6 bytes for the date.
LPM11162 www.lpelettronica.it 15 ver...status (3 bytes): ? the firmware version is composed by one version ch aracter, one revision character and one status character. each character is expresses in ascii for mat, so for example the firmware version 1.0r will be expressed by the characters 10r in the response. day 1...year 2 (6 bytes): ? the firmware release date is two bytes for the day, two bytes for the month and two bytes for the year . for example the date 15/10/09 is expressed by character s 151009 in the response. here is shown an example of firmware version 1.0r ( 15/10/09): 0x82 0x00 1 0x09 5 1 0 0 9 ........... 0 ........... 1 r
LPM11162 www.lpelettronica.it 16 3 C timing specifications 3.1 C reset timing specifications symbol parameter min max t vr minimum time between dv cc and /reset high 1 ms t rl minimum /reset low time 10 ms 3.2 C commands timing specifications symbol parameter min max t ff maximum file format command time (/busy low) 65 sec t fo maximum file open command time (/busy low) 40 s t fc maximum file close command time (/busy low) 25 s t fw maximum file write command time (/busy low) 2.5 ms t stop maximum stop command time (/busy low) 250 ms t vol maximum volume command time (/busy low) 25 s t bc minimum time between /busy high and next command 2 00 s /reset dvcc t vr t rl /busy uart-rx cmd command len data t ff , t fo , t fc , t fw , t vol , t stop cmd command len data t bc
LPM11162 www.lpelettronica.it 17 3.3 C power-up timing specifications symbol parameter min max t ra minimum time between /reset high and autobaudrate character 600 ms t ac maximum time between autobaudrate character and m odule ready to receive commands (1200 bps worst case) 150 ms baudrate values 1200 bps 115200 bps id command auto-baudrate character /reset uart-tx 0x55 cmd uart-rx module id response fw version response ver /busy t ac len data t ra cmd len data command
LPM11162 www.lpelettronica.it 18 packaging informations figure 5 C package dimensions dim millimeters inches a 28.0 1.100 b 20.0 0.787 c 2.54 0.100 d 1.40 0.550 e 3.53 0.139 f 12.0 0.472 g 6.0 0.236 12 11 10 9 8 7 1 2 3 4 5 6 a b c e d f g


▲Up To Search▲   

 
Price & Availability of LPM11162

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X